package com.zzh.phone.hviews;


import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.zzh.lib.core.listener.HOnClickListener;
import com.zzh.lib.core.utils.LogUtils;
import com.zzh.mvvm.base.BaseRabbitActivity;
import com.zzh.phone.hviews.databinding.ActTabIndictorBinding;
import com.zzh.phone.hviews.vm.BadgeViewModel;

/**
 * Created by ZZH on 2022/11/15.
 *
 * @Date: 2022/11/15
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description: TabLayout
 */
public class TabIndicatorActivity extends BaseRabbitActivity<BadgeViewModel, ActTabIndictorBinding> {
    @Override
    protected void initViewAndData(Bundle savedInstanceState) {

    }

    @Override
    public void setListener() {
        super.setListener();
        bind.ivTest.setOnClickListener(v -> Log.e("---", "------: " + System.currentTimeMillis()));
        bind.flContainer.setOnClickListener(new HOnClickListener() {
            @Override
            public void onSafeClick(View v) {
                LogUtils.d("-------------3333: flContainer");
            }
        });

        bind.lvv.setOnClickListener(new HOnClickListener() {
            @Override
            public void onSafeClick(View v) {
                LogUtils.d("-------------3333: Container");
            }

            @Override
            public void onIntervalClick(View v) {
                bind.lvv.showHeartAnim();
            }
        });
    }

    @Override
    protected int initVariableId() {
        return BR.viewModel;
    }
}
